/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.dinner.entity.shop;

import com.thinkgem.jeesite.modules.cms.utils.CmsUtils;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 店铺信息Entity
 * @author dai
 * @version 2018-11-26
 */
public class ResShop extends DataEntity<ResShop> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String picId;		// 店铺LOGO
	private String notice;		// 公告消息
	
	public ResShop() {
		super();
	}

	public ResShop(String id){
		super(id);
	}

	@Length(min=1, max=200, message="名称长度必须介于 1 和 200 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="店铺LOGO长度必须介于 0 和 255 之间")
	public String getPicId() {
		return picId;
	}

	public void setPicId(String picId) {
		this.picId = picId;
	}
	
	@Length(min=0, max=1000, message="公告消息长度必须介于 0 和 1000 之间")
	public String getNotice() {
		return notice;
	}

	public void setNotice(String notice) {
		this.notice = notice;
	}
	public String getImageSrc() {
		return CmsUtils.formatImageSrcToWeb(this.picId);
	}
}